namespace BYTEORDER_NTOH_READ {
#include <unistd.h>
#include <netinet/in.h>


void test_06_myread(int d, short* p) {
	read(d, p, sizeof * p);
}

void test_06_myread_wrapper(int d, short* p) {
	test_06_myread(d, p);
}


int test_06_read(int d) {
	short u;
	test_06_myread_wrapper(d, &u);
	return u - 12;
}

#include <unistd.h>
#include <netinet/in.h>


void test_06_myread(int d, short* p) {
	read(d, p, sizeof * p);
}

void test_06_myread_wrapper(int d, short* p) {
	test_06_myread(d, p);
}


int test_06_read(int d) {
	short u;
	test_06_myread_wrapper(d, &u);
	return ntohs(u) - 12;
}
}}